from django.db import models


# Create your models here.
class Role(models.Model):
    role_zh = models.CharField(max_length=50, unique=True, verbose_name='角色名')
    role_en = models.CharField(max_length=50, unique=True, verbose_name='角色标识')
    #  description   null=True, blank=True  解除非空约束
    description = models.CharField(max_length=255, null=True, blank=True)
    create_time = models.DateTimeField(auto_now_add=True)

    class Meta:
        db_table = 'role'
